using System;
using Spring.Context;
using Spring.Context.Support;

namespace SpringSeries.Core.SimpleObject
{
    class Program
    {
        static void Main(string[] args)
        {
            //EnglishToItalianTranslator _translator = new EnglishToItalianTranslator();
            IApplicationContext _ctx = ContextRegistry.GetContext();
            EnglishToItalianTranslator _translator = (EnglishToItalianTranslator)_ctx.GetObject("MyBasicTranslator");
            Console.WriteLine(_translator.Translate("Hello Spring.NET !!"));
            Console.WriteLine(_translator.Translate("Hello World !!"));
            Console.Read();
        }
    }
}
